package com.zzl.bonds.ticket.constant.status;

/**
 * 是否已发送，0 未发送 1已发送
 *
 * @author : gull
 * @date : 2021/12/7 13:12
 */
public enum SendStatusEnum {

    /**
     * 是否已发送，0 未发送 1已发送
     */
    SEND_STATUS_NO(0, "未发送"),
    SEND_STATUS_YES(1, "已发送"),
    ;
    private Integer code;
    private String value;


    SendStatusEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(Integer code) {
        for (SendStatusEnum statusEnum : SendStatusEnum.values()) {
            if (statusEnum.code.equals(code)) {
                return statusEnum.value;
            }
        }
        return "";
    }


    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
